package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.action.PlaceChangeEquityOrder;
import com.bgrconsulting.stockorderentry.service.model.action.PlaceEquityOrder;

@XmlRootElement(name = "PlaceChangeEquityOrder")
public class PlaceChangeEquityOrderConverter {
	private PlaceChangeEquityOrder enity;
	
	public PlaceChangeEquityOrderConverter(PlaceChangeEquityOrder placeEquityOrder) {
		enity = placeEquityOrder;
	}
	
	public PlaceChangeEquityOrderConverter() {
		enity = new PlaceChangeEquityOrder();
	}
    
	@XmlElement(name = "EquityOrderRequeest")
	public EquityOrderRequestConverter getEquityOrderRequestConverter() {
		
		EquityOrderRequestConverter eorc = new EquityOrderRequestConverter( enity.getEquityOrderRequest());
		return eorc;
	}
}

